package org.xs.web.http.provider;

import java.io.InputStream;
import java.net.URL;
import java.util.List;
import java.util.Map;

import javax.servlet.ServletContext;

public interface HTTPContext {
	
	ServletContext getDelegate();
	
	String contentPath();
	
	String path();
	
	URL resource(String path);
	
	InputStream resourceAsStream(String path);
	
	String initParam(String name);
	
	List<String> initParams();
	
	Object attribute(String key);
	
	Map<String, Object> attributes();
	
	Object setAttribute(String key,Object value);
	
	Object removeAttribute(String key);
	
	String serverInfo();
	
	String mimeType(String file);

}
